<header class="am-topbar am-topbar-fixed-top" id="header">
	<div class="am-g tr-login-topbar">
		<div class="am-container">
			<div class="am-u-sm-12">
				<div class="am-nav am-nav-pills am-topbar-nav am-fl tr-header-top-nav">
					<a href="http://www.sjqcj.com" title="水晶球首页" class="am-btn am-btn-link">水晶球首页</a>
				</div>
				<div class="am-topbar-right am-fr">
					<template v-if="logined">
						您好，
						<a href="{:url('index/index/personal')}" title="个人中心" class="topbar-login">{{user.username}}</a>
						<a href="{:url('index/index/logout')}" title="退出" class="topbar-out">退出</a>
					</template>	
					<template v-else>
						<a href="{:url('index/index/login')}" title="登录" class="topbar-login">登录</a>
						&nbsp;|&nbsp;
						<a href="{:url('index/index/register')}" title="注册" class="topbar-register">注册</a>
					</template>
				</div>
			</div>
		</div>
	</div>
	<div class="am-g tr-menu-topbar">
		<div class="am-container">
			<h1 class="am-topbar-brand">
				<a href="/" title="logo"><img src="/static/img/logo1.png" alt="logo" /></a>
			</h1>
			<button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-secondary am-show-sm-only am-collapsed" data-am-collapse="{target: '#tr-header-nav'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>
			<div class="am-collapse am-topbar-collapse tr-menu-nav" id="tr-header-nav">
				<div class="tr-menu-nav-item">
				<ul class="am-nav am-nav-pills am-topbar-nav">
				    <li class="home{if condition="$Request.controller eq 'Index' and $Request.action eq 'index'"} am-active{/if}"><a href="/" title="模拟炒股首页">模拟炒股首页</a></li>
				    <li class="{if condition="$Request.controller eq 'Index' and $Request.action eq 'matchlist'"} am-active{/if}"><a href="{:url('index/index/matchList')}">模拟赛场</a></li>
				    <li class="{if condition="$Request.controller eq 'Index' and $Request.action eq 'rankinglist'"} am-active{/if}"><a href="{:url('index/index/rankingList')}">牛人排行榜</a></li>
				    <li class="{if condition="$Request.controller eq 'Index' and $Request.action eq 'report'"} am-active{/if}"><a href="{:url('index/index/report')}">赛况报道</a></li>
				    <li><a href="http://www.sjqcj.com/info/10" target="_blank">比赛介绍</a></li>
				    <li class="{if condition="$Request.controller eq 'Index' and $Request.action eq 'tradecenter'"} am-active{/if}"><a href="{:url('index/index/personal')}">我的交易</a></li>
				</ul>
				</div>
			</div>
		</div>
	</div>
</header>